home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_13_08 / beddow / rpc.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-02  |  1.7 KB  |  65 lines

  1. /* ************************************ */
  2. /* Remote Procedure Call (RPC) functions for NetBios */
  3. /* Copyright AJB Beddow 27-Jul-93 */
  4.  
  5. #include <stdio.h>
  6. #include <stdlib.h>
  7. #include <string.h>
  8. #include <dos.h>
  9. #include <ctype.h>
  10. #include "netfn.h"
  11.  
  12. /* Pointer to list of Net Name descriptors */
  13. struct netrpcserver *netrpcserverlist = NULL ;
  14.  
  15. /* Note there is only one client (master) per machine */
  16. /* Client net id */
  17. int masterid = -1 ;  
  18. /* Client name */
  19. char mastername[18] ;
  20.  
  21. /* Error Messages */
  22. char *errmes1 = "Net Bios not detected - exiting\n" ;
  23. /* Net Bios Error Messages */
  24. char *neterrmess[] = {
  25.     "No error",
  26.         "Illegal Buffer length",
  27.         "",
  28.         "Invalid Command",
  29.         "",
  30.         "Time out",
  31.         "Message Incomplete",
  32.         "",
  33.         "Invalid local session number",
  34.         "Out of resources",
  35.         "Session closed",
  36.         "Command cancelled",
  37.         "",
  38.         "Duplicate local name",
  39.         "Name table full",
  40.         "Delete name completed with session in progress",
  41.         "",
  42.         "Local session table full",
  43.         "Remote computer not listening",
  44.         "Invalid name number",
  45.         "Name not found",
  46.         "Name not found or * in remote name field",
  47.         "Name already exists on network",
  48.         "Name was deleted",
  49.         "Remote connection lost",
  50.         "Name conflict",
  51.         "",
  52.         "",
  53.         "",
  54.         "",
  55.         "",
  56.         "",
  57.         "",
  58.         "Interface busy",
  59.         "Too many commands issued",
  60.         "Invalid adapter number (LANA)",
  61.         "Command completed before cancel",
  62.         "",
  63.         "Invalid cancel command" } ;
  64.  
  65.